#!/bin/bash
docker stop registry
docker rm registry
docker run -d \
  --restart=always \
  --name registry \
  -v `pwd`/certs:/certs \
  -v `pwd`/registry/:/var/lib/registry \
  -e REGISTRY_HTTP_ADDR=0.0.0.0:443 \
  -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/colorfulgz.com.pem \
  -e REGISTRY_HTTP_TLS_KEY=/certs/colorfulgz.com.key \
  -p 6052:443 \
  registry:2
